<template>
  <div class="category">
    <h3>{{ title }}分类</h3>
<!--    <ul>-->
<!--      <li v-for="item in games">{{ item }}</li>-->
<!--    </ul>-->
    <slot :games="games" msg="hello"></slot>
  </div>
</template>

<script>
export default {
  name: "Category",
  props: ['title'],
  data() {
    return {
      games: ["红色戒", '穿越火线', '劲舞团', '超级玛丽'],
    }
  },
}
</script>

<style scoped>
.category {
  background: #80c5ff;
  width: 200px;
  height: 300px;
}

h3 {
  text-align: center;
  background: #70eab3;
}
</style>